import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

const store = {
    state: {
        name: '',
        islogin: false,
    },
    plugins: [createPersistedState()],

    mutations: {
        updataname(state, playload) {
            state.name = playload
        },
        updataislogin(state, playload) {
            state.islogin = playload
        }
    },
}
export default new Vuex.Store(store)


